#ifndef INTCOUNTER_H
#define INTCOUNTER_H

// This class counts the number of occurences of integers.

#include <iostream>
using namespace std;

class intCounter
{
   public:
      intCounter();
      void increment(int);
      void decrement(int);

      int count(int);
      void printCounter();

   private:
      class numNode
      {
         public:
            int num;
	    int count;
	    numNode* next;
      };

      numNode* head;
};

#endif //INTCOUNTER_H
